package com.credithc.customers.base.ro;

import com.credithc.customers.base.utils.CustomerUtils;
import lombok.Data;

/**
 * @description: 【h5】授权页面请求一账通
 * @author: dhx
 * @date: 2019/7/8 15:47
 * @param: null
 * @return:
 */
@Data
public class UnifyGrantAuthRo extends CustomerBaseRo {

    private String code;

    private String mainSystemId;

    private String timestamp;

    private String subSystemId;

    private String verifyCode;

    private String backUrl;

    public static void checkBaseParam(UnifyGrantAuthRo ro) {
        CustomerUtils.checkRequestNo(ro.getRequestNo());
        CustomerUtils.checkCode(ro.getCode());
        CustomerUtils.checkMainSystemId(ro.getMainSystemId());
        CustomerUtils.checkSubSystemId(ro.getSubSystemId());
        CustomerUtils.checkTimestamp(ro.getTimestamp());
        CustomerUtils.checkVerifyCode(ro.getVerifyCode());
    }
}
